/*
 * @Date: 2019-06-01 09:52:59
 * @Author: Ryan Huang
 * @Description:
 */

package variables

type Header struct {
	Index int   `json:"index"`
	Time  int64 `json:"time"`
}

type Body struct {
	Body string `json:"body"`
}

type Msg struct {
	Header
	Body
}

type Identity struct {
	Header
	Addr     string `json:"addr"`
	Name     string `json:"name"`
	Password string `json:"password"`
}

type Response struct {
	Flag bool        `json:"flag"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}
